<?php

return [
    'mch_id' => '1723505607',
    'appid' => 'wx7b87e84c26a3946b',      // 公众号或小程序
    'serial' => '2BDEC7B61D833AE12D16E0BC86E548C0F6E6F3F4',      // 商户证书序列号
    'secret_key' => 'aB7kM9nP2qR5sT8uV1wX4yZ6cD3eF7gH',  // v3 密钥
    'private_key' => root_path() . 'cert/apiclient_key.pem',
    'cert_pem' => root_path() . 'cert/apiclient_cert.pem',
    'platform_cert' => root_path() . 'cert/wechatpay_cert.pem',
    'notify_url' => request()->domain() . '/api/notify',
    // 日志
    'log' => [
        'level' => 'debug',
        'file' => runtime_path() . 'log/wechatpay.log',
    ],

//    composer exec CertificateDownloader.php -- \
//    -m  1723505607 \
//    -s  2BDEC7B61D833AE12D16E0BC86E548C0F6E6F3F4 \
//    -f  ./cert/apiclient_key.pem \
//    -k  aB7kM9nP2qR5sT8uV1wX4yZ6cD3eF7gH \
//    -o  ./cert/
];